import request from "@/utils/request";

export function getAttachments(paramters) {
  return request({
    url: "api/v1/attachments",
    method: "get",
    params: paramters,
    authServer: false,
  });
}

export function addAttachment(data) {
  return request({
    url: "api/v1/attachments",
    method: "post",
    data: data,
    authServer: false,
  });
}


export function deleteAttachment(id) {
  return request({
    url: "api/v1/attachments/" + id,
    method: "delete",
    authServer: false,
  });
}

